import random
print ("попытки")
a = int(input())
box= 0

for i in range(10):
    x=random.randint(-250,250)
    y=random.randint(-250,250)
    if x<=5 and y>=-8 and y<=5 and x>=-7:
        box +=1
print ("попытки",a)
print ("попадания",box)